package com.cfec.ipoth_service.Controller;

import com.cfec.ipoth_service.service.impl.FacialAnalysisServiceImpl;
import com.cfec.ipoth_service.util.ResultData;
import io.swagger.annotations.ApiOperation;
import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import java.util.List;

@RestController
@RequestMapping("/emotion")
@ApiOperation("控制层:情绪")
@Slf4j
public class EmotionController {

    @Resource(name = "facialAnalysisServiceImpl")
    private FacialAnalysisServiceImpl facialAnalysisService;

    @RequestMapping("/getFaceEmotion")
    @ApiOperation("获取面部情绪分析结果")
    public ResultData<Object> getFaceEmotion(List<Long> olderIds)
    {
        return facialAnalysisService.getFaceEmotion(olderIds);
    }
}
